﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Esb.Domain.DomainObjects;

namespace Esb.ManageUI.Controllers
{
    public class ServiceStatisController : BaseController
    {
        //
        // GET: /Service/

        /// <summary>
        /// 查看现有的一个服务的信息
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(int id)
        {
            //ServiceService serviceSvc = new ServiceService();
            ServiceDo result = null; // serviceSvc.GetServiceById(id);
            //获得全部日志

            //ServiceLogService logSvc = new ServiceLogService();
            //string msg;
            //List<AppLogDTO> logs = logSvc.QueryServiceErrorLog(result, out msg);
            ViewBag.Logs = 100;// logs;
            ViewBag.ErrorCount = 100;// logs.Count;
            //List<AppLogDTO> logs2 = logSvc.QueryServiceCallLog(result, out msg);
            ViewBag.CallCount = 100;// logs2.Count;

            return View(result);
        }
    }
}
